package com.tianfei.crowd.service.api;


import java.util.List;

import com.github.pagehelper.PageInfo;
import com.tianfei.crowd.entity.Admin;
import com.tianfei.crowd.entity.Role;

public interface AdminService {
	
	void saveAdmin(Admin admin);

	List<Admin> getAll();

    Admin getByLoginAccount(String loginAcct, String loginPwd);

    PageInfo<Admin> getPageInfo(String keyword,Integer pageNum,Integer pageSize);

    void removeAdminById(Integer adminId);

    Admin getAdminById(Integer adminId);

    void update(Admin admin);

    void saveAdminRoleRelationship(Integer adminId, List<Integer> roleIdList);

    Admin getAdminByLoginAcct(String userName);
}
